package com.pattern.strategy_pattern;

/**
 * Created by chen on 2018/3/29.
 * <p>
 * Email 122741482@qq.com
 * <p>
 * Describe:
 */
public class StrategyDemo {
    public static void main(String[] args) {
        Context context1 = new Context(new SubstractStrategy());
        context1.executeStrategy(1,2);


        Context context2 = new Context(new AdditionStrategy());
        context2.executeStrategy(1,2);
    }
}
